package com.rope.backEnd.config;

import okhttp3.OkHttpClient;
import okhttp3.Request;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DeepSeekConfig {
    @Value("${deepseek.api-key}")
    private String apiKey;

    @Bean
    public OkHttpClient deepSeekClient() {
        return new OkHttpClient();
    }

    @Bean
    public Request.Builder deepSeekRequestBuilder() {

        return new Request.Builder()
                .addHeader("Authorization", "Bearer " + apiKey)
                .addHeader("Content-Type", "application/json");
    }
}
